package com.xxgc.eow.service;

import com.xxgc.eow.entity.Answer;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 答题提交记录 服务类
 * </p>
 *
 * @author Mr.Abel
 * @since 2023-06-04
 */
public interface IAnswerService extends IService<Answer> {

    Integer getAllByUserId(Integer userId);

    Integer getAllPassByUserId(Integer userId);

    Integer getAllUnPassByUserId(Integer userId);

    Integer getCountByUserIdAndLevel(Integer userId, Integer level);

    Integer getAnswerIdByUserIdAndTopicId(Integer userId, Integer topicId);

    List<Answer> getAllAnswer(Integer userId, Integer libraryId);

    Integer clearUserAnswer(Integer userId,Integer library);
}
